import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

import Router from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',

    name: 'Home',
    component: Home,
    meta: {
      title: "全国疫情可视化平台"

    },
  },
  {
    path: '/yimiao',

    name: 'Yimiao',
    component: () => import('../views/Yimiao.vue'),
    meta: {
      title: "疫苗接种-全国疫情可视化平台"

    },
  },
  {
    path: '/symptom',
    name: 'Symptom',
    component: () => import('../views/Symptom'),
    meta: {
      title: "症状及途径-全国疫情可视化平台"

    },
  },
  {
    path: '/shoukuan',

    name: 'Shoukuan',
    component: () => import('../views/Shoukuan.vue'),
    meta: {
      title: "健康码-全国疫情可视化平台"

    },
  },
  {
    path: '/jiankang',

    name: 'Jiankang',
    component: () => import('../views/Jiankang.vue'),
    meta: {
      title: "健康码申请-全国疫情可视化平台"

    },
  },
  {
    path: '/map',

    name: 'Map',
    component: () => import('../views/Map.vue'),
    meta: {
      title: "疫情地图-全国疫情可视化平台"

    },
  },
  {
    path: '/dataStatic',

    name: 'DataStatisc',
    component: () => import('../views/DataStatic.vue'),
    meta: {
      title: "数据统计-全国疫情可视化平台"

    },
  },
  {
    path: '/current',

    name: 'Current',
    component: () => import('../views/Current.vue'),
    meta: {
      title: "实时疫情-国疫情可视化平台"

    },
  },
  {
    path: '/hosp',

    name: 'Hosp',
    component: () => import('../views/Hosp.vue'),
    meta: {
      title: "定点医院-全国疫情可视化平台"

    },
  },
  {
    path: '/prevention',

    name: 'Prevention',
    component: () => import('../views/Prevention.vue'),
    meta: {
      title: "疫情预防-全国疫情可视化平台"

    },
  },
  {
    path: '/hospMap',

    name: 'HospMap',
    component: () => import('../views/HospMap.vue'),
    meta: {
      title: "地图-全国疫情可视化平台"

    },
  },
  {
    path: '/list',
    name: 'List',
    component: () => import('../views/Information/List.vue'),
    meta: {
      title: "数据列表-全国疫情可视化平台"

    },
  },
  {
    path: '/user',
    name: 'User',
    component: () => import('../views/User.vue')
  },
  {
    path: '/hospital',
    name: 'Hospital',
    component: () => import('../views/EpidemicManage/Hospital.vue'),
    meta: {
      title: "定点医院-全国疫情可视化平台"

    },
  },
  {
    path: '/vedio',
    name: 'Vedio',
    component: () => import('../views/EpidemicManage/Vedio.vue'),
    meta: {
      title: "相关视频-全国疫情可视化平台"

    },
  },
  {
    path: '/usercontrol',
    name: 'Usercontrol',
    component: () => import('../views/Basicsettings/usercontrol.vue'),
    meta: {
      title: "用户管理-全国疫情可视化平台"

    },
  },
  {
    path: '/rolemanagement',
    name: 'Rolemanagement',
    component: () => import('../views/Basicsettings/Rolemanagement.vue'),
    meta: {
      title: "角色管理-全国疫情可视化平台"

    },
  },
  {
    path: '/authoritymanagement',
    name: 'Authoritymanagement',
    component: () => import('../views/Basicsettings/Authoritymanagement.vue'),
    meta: {
      title: "权限管理-全国疫情可视化平台"

    },
  },
  {
    path: '/infoList',
    name: 'infoList',
    component: () => import('../views/EpidemicManage/InfoList.vue'),
    meta: {
      title: "咨询分类-全国疫情可视化平台"

    },
  },
  {
    path: '/foregin',
    name: 'Foregin',
    component: () => import('../views/EpidemicManage/Foreign.vue'),
    meta: {
      title: "国外咨询-全国疫情可视化平台"

    },
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import('../views/EpidemicManage/Article.vue'),
    meta: {
      title: "新闻资讯-全国疫情可视化平台"

    },
  },
  {
    path: '/time',
    name: 'Time',
    component: () => import('../views/EpidemicManage/Time.vue'),
    meta: {
      title: "疫情轴-全国疫情可视化平台"

    },
  },
  {
    path: '/up',
    name: 'Up',
    component: () => import('../views/Information/Up.vue'),
    meta: {
      title: "数据上报-全国疫情可视化平台"

    },
  },

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
